package com.lbd99.data.lbd.controller;

import java.util.Map;

import javax.servlet.http.HttpSession;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lbd99.data.lbd.service.BIfibCupService;

@Controller
@RequestMapping("bIfibCup")
public class BIfibCupController {
	
	private static final Logger logger = LoggerFactory.getLogger(BIfibCupController.class);
	
	@Autowired
	private BIfibCupService bIfibCupService;
	
	
	/**
	 * 查询平台IFBI
	 * @return
	 */
	@RequestMapping("getIfibList")
	@ResponseBody
	public Map<String, Object> getIfibList(){
		logger.info("adress---------/bIfibCup/getIfibList");
		return bIfibCupService.getIfibList();
	}
	
	
	/**
	 * 充值平台IFBI
	 * @param amount
	 * @param tradePwd
	 * @param id
	 * @return
	 */
	@RequestMapping("rechargeIFBI")
	@ResponseBody
	public Map<String,Object> rechargeIFBI(String amount,String tradePwd,Integer id,HttpSession httpSession){
		return bIfibCupService.rechargeIFBI(amount, tradePwd, id, httpSession);
	}
	
}
